package com.geek.javase.ch06.test3;

import java.time.LocalDate;

/*
 *@author wangpeng
 *2025/10/14 22:12
 *@description TODO
 */
//1.计算出生日期至今的天数
public class Demo1 {
    public static void main(String[] args) {
        String dateStr1 = "1999-06-09";
        LocalDate localDate = LocalDate.parse(dateStr1);
        LocalDate now = LocalDate.now();
        long day = now.toEpochDay() - localDate.toEpochDay();
        System.out.println(day);
    }
}
